ar = []

puts ar.length

(0 ... 1000000).each do |i|
    ar.push(i)
end

puts ar.length

(0 ... 1000000).each do |i|
    ar.pop()
end

puts ar.length
